package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.SaleListGoods;
import com.atguigu.jxc.entity.vo.CustomerGoodsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author qingyu
 * @create 2022-01-02 18:41
 * @description
 */
public interface SaleListGoodsDao {
    /**
     * 查询销售单商品信息
     * @param saleListId
     * @return
     */
    List<SaleListGoods> goodList(Integer saleListId);

    /**
     * 通过saleListId删除销售单商品信息
     * @param saleListId
     */
    void delete(Integer saleListId);

    /**
     * 新增销售单商品信息
     * @param saleListGoods
     */
    void insert(SaleListGoods saleListGoods);


    void updateState(Integer saleListId);

    List<CustomerGoodsVo>  count(String sTime, String eTime, Integer goodsTypeId, String codeOrName);

    //List<SaleDataByDayOrMonthVo> getSaleDataByDay(String sTime, String eTime);

    Double getSaleTotal(@Param("s") String s);

    Double getPurchasingTotal(@Param("s") String s);
}
